<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS背景</title>
    <style>
        body{
            /* background-image: url(../img/touxiang.png); */
            /* background-repeat: no-repeat; */
            background-size: cover;
            background:aqua url(../img/touxiang.png),center,no-repeat;
        }
        div{
            width: 300px;
            height: 300px;
            background-color: #9000ff;
        }
    </style>
</head>
<body>
    <!--  -->
    <div>
        文字
    </div>
</body>
</html>